const TYPE_ELEM = {
  TEXT: 1,
  IMAGE: 2,
  AUDIO: 3,
  VIDEO: 4,
}

const TYPE_ARRT = {
  // 公共
  DEL: 0,
  ANI: 1,
  BOX: 2,
  BORDER: 3,
  SHADOW: 4,
  TRANSFORM: 5,
  OTHER: 6,
  // 文本
  FONT: 7,
  EDITOR: 8,
  // 图片
  CROP: 9,
  CHANGE: 10,
  FILTER: 11,
}

const ARRT_ELEM = {
  [TYPE_ARRT.DEL]: [TYPE_ELEM.TEXT, TYPE_ELEM.IMAGE, TYPE_ELEM.AUDIO, TYPE_ELEM.VIDEO],
  [TYPE_ARRT.ANI]: [TYPE_ELEM.TEXT, TYPE_ELEM.IMAGE, TYPE_ELEM.AUDIO, TYPE_ELEM.VIDEO],
  [TYPE_ARRT.BOX]: [TYPE_ELEM.TEXT, TYPE_ELEM.IMAGE, TYPE_ELEM.AUDIO, TYPE_ELEM.VIDEO],
  [TYPE_ARRT.BORDER]: [TYPE_ELEM.TEXT, TYPE_ELEM.IMAGE, TYPE_ELEM.AUDIO, TYPE_ELEM.VIDEO],
  [TYPE_ARRT.SHADOW]: [TYPE_ELEM.TEXT, TYPE_ELEM.IMAGE, TYPE_ELEM.AUDIO, TYPE_ELEM.VIDEO],
  [TYPE_ARRT.TRANSFORM]: [TYPE_ELEM.TEXT, TYPE_ELEM.IMAGE, TYPE_ELEM.AUDIO, TYPE_ELEM.VIDEO],
  [TYPE_ARRT.OTHER]: [TYPE_ELEM.TEXT, TYPE_ELEM.IMAGE, TYPE_ELEM.AUDIO, TYPE_ELEM.VIDEO],
  [TYPE_ARRT.FONT]: [TYPE_ELEM.TEXT],
  [TYPE_ARRT.EDITOR]: [TYPE_ELEM.TEXT],
  [TYPE_ARRT.CROP]: [TYPE_ELEM.IMAGE],
  [TYPE_ARRT.CHANGE]: [TYPE_ELEM.IMAGE],
  [TYPE_ARRT.FILTER]: [TYPE_ELEM.IMAGE],
}

export {
  TYPE_ELEM,
  TYPE_ARRT,
  ARRT_ELEM
}
